package cn.mineserv.video.videoordersystem.dao;

import cn.mineserv.video.videoordersystem.model.Favorite;
import cn.mineserv.video.videoordersystem.model.FavoriteExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FavoriteDao extends BaseMapper<Favorite> {
    long countByExample(FavoriteExample example);

    int deleteByExample(FavoriteExample example);

    List<Favorite> selectByExample(FavoriteExample example);

    int updateByExampleSelective(@Param("record") Favorite record, @Param("example") FavoriteExample example);

    int updateByExample(@Param("record") Favorite record, @Param("example") FavoriteExample example);

    int updateBatch(List<Favorite> list);

    int updateBatchSelective(List<Favorite> list);

    int batchInsert(@Param("list") List<Favorite> list);

    int insertOrUpdate(Favorite record);

    int insertOrUpdateSelective(Favorite record);
}